/**
 * 
 */
package com.mvc.model.healthmanager.archive;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.mvc.model.base.IdEntity;

/**
 * @author qingjie
 *
 */
@Entity
@Table(name="yh_blood_oxygen")
@DynamicInsert(true)
@DynamicUpdate(true)
@JsonIgnoreProperties(ignoreUnknown = true)
public class BloodOxygen  extends IdEntity implements Serializable{
	private static final long serialVersionUID = 9111852337251092382L;
	private String idcode;
	private String personId;//
	private String sensorId;//
	private String gatewayId;//
	private Double spo2;//
	private Double pulse;//
	private Double cubage;//
	private String bargraph;//
	private String state;//
	private Date creatDate;//
	private Integer count;
	private String dataSourse;
	
	private String oxygen;//血氧值 
	private String oxygenList;//血氧列表值 
	private String bpm;//脉率值 
	private String bpmList;//脉率列表值 
	private String result;//结论(-1：低血氧；0正常血氧)
	
	private Long appLocalId;
	private Integer respCode;
	
	public String getIdcode() {
		return idcode;
	}
	public String getPersonId() {
		return personId;
	}
	public String getSensorId() {
		return sensorId;
	}
	public String getGatewayId() {
		return gatewayId;
	}
	public Double getSpo2() {
		return spo2;
	}
	public Double getPulse() {
		return pulse;
	}
	public Double getCubage() {
		return cubage;
	}
	public String getBargraph() {
		return bargraph;
	}
	public String getState() {
		return state;
	}
	public Date getCreatDate() {
		return creatDate;
	}
	public Integer getCount() {
		return count;
	}
	public String getDataSourse() {
		return dataSourse;
	}
	public void setIdcode(String idcode) {
		this.idcode = idcode;
	}
	public void setPersonId(String personId) {
		this.personId = personId;
	}
	public void setSensorId(String sensorId) {
		this.sensorId = sensorId;
	}
	public void setGatewayId(String gatewayId) {
		this.gatewayId = gatewayId;
	}
	public void setSpo2(Double spo2) {
		this.spo2 = spo2;
	}
	public void setPulse(Double pulse) {
		this.pulse = pulse;
	}
	public void setCubage(Double cubage) {
		this.cubage = cubage;
	}
	public void setBargraph(String bargraph) {
		this.bargraph = bargraph;
	}
	public void setState(String state) {
		this.state = state;
	}
	public void setCreatDate(Date creatDate) {
		this.creatDate = creatDate;
	}
	public void setCount(Integer count) {
		this.count = count;
	}
	public void setDataSourse(String dataSourse) {
		this.dataSourse = dataSourse;
	}
	@Transient
	public String getOxygen() {
		return oxygen;
	}
	@Transient
	public String getOxygenList() {
		return oxygenList;
	}
	@Transient
	public String getBpm() {
		return bpm;
	}
	@Transient
	public String getBpmList() {
		return bpmList;
	}
	@Transient
	public String getResult() {
		return result;
	}
	@Transient
	public void setOxygen(String oxygen) {
		this.oxygen = oxygen;
	}
	@Transient
	public void setOxygenList(String oxygenList) {
		this.oxygenList = oxygenList;
	}
	@Transient
	public void setBpm(String bpm) {
		this.bpm = bpm;
	}
	@Transient
	public void setBpmList(String bpmList) {
		this.bpmList = bpmList;
	}
	@Transient
	public void setResult(String result) {
		this.result = result;
	}
	@Transient
	public Long getAppLocalId() {
		return appLocalId;
	}
	@Transient
	public Integer getRespCode() {
		return respCode;
	}
	@Transient
	public void setAppLocalId(Long appLocalId) {
		this.appLocalId = appLocalId;
	}
	@Transient
	public void setRespCode(Integer respCode) {
		this.respCode = respCode;
	}
	
}
